package hasthi.actuators.actions;

import hasthi.actuators.ResourceBasedAction;
import hasthi.common.HasthiException;
import hasthi.metamodel.resource.ManagedResource;

public class RecoverDatabaseAction extends ResourceBasedAction{
    private String name;
    public RecoverDatabaseAction(ManagedResource resource,boolean simpleRestart) {
        super(resource);
        name =  "RecoverDatabaseAction#" + resource.getName();
    }
    @Override
    public void execute() throws HasthiException {
        //find checkpointing location
        //recover database
        //update configurations
        //restart dependencies
        throw new UnsupportedOperationException();
    }
    @Override
    public String getActionID() {
        return name;
    }

    @Override
    public String toString() {
        return name;
    }
}
